package com.myjpa.generate;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: yaoll
 * @date: 2020-09-04
 * @verison: 1.0
 */
@Getter
@Setter
public class Attribute {

	private Class type;
	private String name;

	public Attribute() {
	}

	public Attribute(Class type, String name) {
		this.type = type;
		this.name = name;
	}

	public String getGetter() {
		return "get" + name.substring(0, 1).toUpperCase() + name.substring(1);
	}

	public String getSetter() {
		return "set" + name.substring(0, 1).toUpperCase() + name.substring(1);
	}
}
